const mongoose = require('./db')
const Schema = mongoose.Schema
const TagSchema = new Schema({
    // 标签名，方案子项目名称
    name: {
        type: String,
        required: true
    },
    // 父级名称
    parent: {
        type: String,
        required: true
    },
    // 标签层级 2:节，3:小节
    lv: {
        type: Number,
        required: true,
        default: 2
    },
    // 专业类型
    subjectType: {
        type: Number,
        required: true,
        default: 8
    }
})

module.exports = TagModel = mongoose.model('pdf_tag', TagSchema)
